<?php	
	require "settings/config.php";
	require "layout.php";
	require "includes/session.php";
	require "includes/sql_functions.php";
	require "includes/slot_functions.php";
	require "includes/game_functions.php";
	
	oh_require_admin();
	
	render_header("Manage Players");
	
	echo "<div style=\"display:inline-block;vertical-align:top;padding:0.5em\">";
	echo "<b>Current players</b> <br/>\n";
		render_user_list();
	echo "</div>";
?>
	<div style="display:inline-block;vertical-align:top;padding:0.5em">
	<form action="do_broadcast.php" method="post">
	<b>Email Broadcast:</b><br />
	
	Subject:<br />
	<input type="text" name="subject" size="64" class="inputbox"> <br /> 
	
	Message Text: <br />
	<textarea name="text" cols="50" rows="10" class="inputbox"></textarea></p>
	
	<input type="submit" class="button" value="Send">
	</form>
	</div>
	
	<div style="display:inline-block;vertical-align:top;padding:0.5em">
	<b>Register a user:</b><br />
	<form action="do_reg.php" method="POST">
	Username: <input type="text" name="username" size="32" class="inputbox"> <br /> <br />
	First Name:  <input type="text" name="firstname" size="32" class="inputbox"> <br /> <br />
	Last Name: <input type="text" name="lastname" size="32" class="inputbox"> <br /> <br />
	Email Address: <input type="text" name="email" size="64" class="inputbox"> <br /> <br />
	<input type="submit" class="button" value="Register">
	</form>
	</div>
<?php
	render_footer();
?>